package com.zy.project.system.role.manager.impl;

import com.zy.core.data.jpa.support.manager.impl.BaseManagerImpl;
import com.zy.core.data.jpa.support.repository.BaseRepository;
import com.zy.project.system.role.entity.base.BaseSystemRole;
import com.zy.project.system.role.manager.SystemRoleManager;
import com.zy.project.system.role.repository.SystemRoleRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 系统角色实现
 * Package: core.manager.impl
 * <p>
 * Description： TODO
 * <p>
 * Author: zhangyu
 * <p>
 * Date: Created in 2018-9-3 20:25
 * <p>
 * Company: mingtu
 * <p>
 * Copyright: Copyright (c) 2018
 * <p>
 * Version: 0.0.1
 * <p>
 * Modified By:
 */
@Service
@Transactional(readOnly=true)
public class SystemRoleManagerImpl extends BaseManagerImpl<BaseSystemRole,String> implements SystemRoleManager {

    @Autowired
    private SystemRoleRepository roleRepository;

    @Override
    public BaseRepository<BaseSystemRole, String> getDao() {
        return this.roleRepository;
    }

    @Override
    public List<BaseSystemRole> findByUserId(String userId) {
        return null;
    }
}
